package MyReflect;

public class MyReflectDemo1 {
    public static void main(String[] args) throws ClassNotFoundException {

        //第一种
        Class clazz = Class.forName("MyReflect.Student");
        System.out.println(clazz);

        //第二种
        Class<Student> clazz2 = Student.class;
        System.out.println(clazz2);

        //第三种
        Student s = new Student();
        Class<? extends Student> clazz3 = s.getClass();
        System.out.println(clazz3);

        System.out.println(clazz==clazz2);
        System.out.println(clazz2==clazz3);

    }
}
